__author__ = 'East'

class Dog(object):
    name = 'ssssssssssssssss'
    def __init__(self, name):
        self.name = name

    @classmethod    # 只能访问类变量，不能访问实例变量
    def eat(self):
        print('%s is eating %s' % (self.name, 'ss'))

    def talk(self):
        print('%s is talking' % self.name)

d = Dog('ChengRonghua')
d.eat()
d.talk()